<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
	protected function _initHead() {
		$this->bootstrap('view');
		$view = $this->getResource('view');
		$view->doctype('XHTML1_STRICT');
		$view->headTitle('Sanket Parab')->setSeparator(' - ');
		$view->headLink()->setStylesheet('/css/global.css');
		$view->headMeta()->appendName('keywords','sanket parab, sanket, parab, PHP, php, portfolio, resume');
		$view->headMeta()->appendName('description','sanket parab portfolio website');
		$view->headScript()->setFile('/js/global.js');
	}
	protected function _initRoutes() {
		$frontController  = Zend_Controller_Front::getInstance();
		$router = $frontController->getRouter();
		$router->addRoute(
			'readBlog',
			new Zend_Controller_Router_Route(
					'journal/:url',
				array(
							'module' => 'default',
							'controller' => 'journal',
							'action' => 'index',
							'url' => null
				)
			)
		);
	}
	protected function _initApplication() {
		$resourceLoader = Zend_Loader_Autoloader::getInstance();
		$resourceLoader ->setFallbackAutoloader(true);
	}
}